#
# Changes the IIS default Timeout Value (300 sec)
# Last Updated By: Nate Bruneau (nathbr) | 8/6/2009
#
Write-Host -ForegroundColor Yellow "IIS: Changing IIS Default Timeout Value for $env:computername"

& "$env:windir\system32\inetsrv\appcmd.exe" set config -section:system.applicationHost/sites /siteDefaults.limits.connectionTimeout:"00:05:00" /commit:apphost

Write-Host -ForegroundColor Yellow "IIS: Changing IIS Default Timeout Value for $env:computername. COMPLETED"